import 'package:flutter/material.dart';

// 导航栏跳转构造类
class NavigatorItem{
  final String title;
  final String imgUrl;
  final Function(BuildContext contenxt) onTap;

  NavigatorItem(this.title, this.imgUrl,this.onTap);
}

// 导航栏列表
List<NavigatorItem> navigatorItemList = [
  NavigatorItem('整租', 'static/images/home_index_navigator_total.png', (BuildContext context) {
    Navigator.pushNamed(context, '/total');
  }),
  NavigatorItem('合租', 'static/images/home_index_navigator_share.png', (BuildContext context) {
    Navigator.pushNamed(context, '/share');
  }),
   NavigatorItem('地图找房', 'static/images/home_index_navigator_map.png', (BuildContext context) {
    Navigator.pushNamed(context, '/map');
  }),
   NavigatorItem('去出租', 'static/images/home_index_navigator_rent.png', (BuildContext context) {
    Navigator.pushNamed(context, '/rent');
  }),
];